﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Common
{
    public interface IGetRepository<tEntity,tType>
        where tEntity : MasterEntityBase<tType>
        where tType : struct 
    {
        tEntity GetById(tType Id);
        IEnumerable<tEntity> GetAll();
        IEnumerable<tEntity> GetByConditoin(Expression<Func<tEntity, bool>> Predicate);
    }
}
